/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package tracker.android.com;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>ICommunication COM TYPE ENUM</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see tracker.android.com.ComPackage#getICommunication_COM_TYPE_ENUM()
 * @model
 * @generated
 */
public enum ICommunication_COM_TYPE_ENUM implements Enumerator {
	/**
	 * The '<em><b>COM TYPE BLUETOOTH</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_BLUETOOTH_VALUE
	 * @generated
	 * @ordered
	 */
	COM_TYPE_BLUETOOTH(0, "COM_TYPE_BLUETOOTH", "COM_TYPE_BLUETOOTH"),

	/**
	 * The '<em><b>COM TYPE WLAN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_WLAN_VALUE
	 * @generated
	 * @ordered
	 */
	COM_TYPE_WLAN(1, "COM_TYPE_WLAN", "COM_TYPE_WLAN"),

	/**
	 * The '<em><b>COM TYPE SERIAL</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_SERIAL_VALUE
	 * @generated
	 * @ordered
	 */
	COM_TYPE_SERIAL(2, "COM_TYPE_SERIAL", "COM_TYPE_SERIAL"),

	/**
	 * The '<em><b>COM TYPE ETHERNET</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_ETHERNET_VALUE
	 * @generated
	 * @ordered
	 */
	COM_TYPE_ETHERNET(3, "COM_TYPE_ETHERNET", "COM_TYPE_ETHERNET"),

	/**
	 * The '<em><b>COM TYPE CAN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_CAN_VALUE
	 * @generated
	 * @ordered
	 */
	COM_TYPE_CAN(4, "COM_TYPE_CAN", "COM_TYPE_CAN"),

	/**
	 * The '<em><b>COM TYPE FLEXRAY</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_FLEXRAY_VALUE
	 * @generated
	 * @ordered
	 */
	COM_TYPE_FLEXRAY(5, "COM_TYPE_FLEXRAY", "COM_TYPE_FLEXRAY");

	/**
	 * The '<em><b>COM TYPE BLUETOOTH</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>COM TYPE BLUETOOTH</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_BLUETOOTH
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int COM_TYPE_BLUETOOTH_VALUE = 0;

	/**
	 * The '<em><b>COM TYPE WLAN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>COM TYPE WLAN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_WLAN
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int COM_TYPE_WLAN_VALUE = 1;

	/**
	 * The '<em><b>COM TYPE SERIAL</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>COM TYPE SERIAL</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_SERIAL
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int COM_TYPE_SERIAL_VALUE = 2;

	/**
	 * The '<em><b>COM TYPE ETHERNET</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>COM TYPE ETHERNET</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_ETHERNET
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int COM_TYPE_ETHERNET_VALUE = 3;

	/**
	 * The '<em><b>COM TYPE CAN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>COM TYPE CAN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_CAN
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int COM_TYPE_CAN_VALUE = 4;

	/**
	 * The '<em><b>COM TYPE FLEXRAY</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>COM TYPE FLEXRAY</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #COM_TYPE_FLEXRAY
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int COM_TYPE_FLEXRAY_VALUE = 5;

	/**
	 * An array of all the '<em><b>ICommunication COM TYPE ENUM</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final ICommunication_COM_TYPE_ENUM[] VALUES_ARRAY =
		new ICommunication_COM_TYPE_ENUM[] {
			COM_TYPE_BLUETOOTH,
			COM_TYPE_WLAN,
			COM_TYPE_SERIAL,
			COM_TYPE_ETHERNET,
			COM_TYPE_CAN,
			COM_TYPE_FLEXRAY,
		};

	/**
	 * A public read-only list of all the '<em><b>ICommunication COM TYPE ENUM</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<ICommunication_COM_TYPE_ENUM> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>ICommunication COM TYPE ENUM</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ICommunication_COM_TYPE_ENUM get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ICommunication_COM_TYPE_ENUM result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>ICommunication COM TYPE ENUM</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ICommunication_COM_TYPE_ENUM getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			ICommunication_COM_TYPE_ENUM result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>ICommunication COM TYPE ENUM</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static ICommunication_COM_TYPE_ENUM get(int value) {
		switch (value) {
			case COM_TYPE_BLUETOOTH_VALUE: return COM_TYPE_BLUETOOTH;
			case COM_TYPE_WLAN_VALUE: return COM_TYPE_WLAN;
			case COM_TYPE_SERIAL_VALUE: return COM_TYPE_SERIAL;
			case COM_TYPE_ETHERNET_VALUE: return COM_TYPE_ETHERNET;
			case COM_TYPE_CAN_VALUE: return COM_TYPE_CAN;
			case COM_TYPE_FLEXRAY_VALUE: return COM_TYPE_FLEXRAY;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private ICommunication_COM_TYPE_ENUM(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //ICommunication_COM_TYPE_ENUM
